
import axios from "axios";

const instance = axios.create({
    baseURL: 'http://120.24.64.5:8088/mall-admin',
    timeout: 10000,

})

// 请求拦截器
instance.interceptors.request.use(config => {
    return config
}, err => {
    return Promise.reject(err)
})

// 响应拦截器
instance.interceptors.response.use(result => {
    return result.data
}, err => {
    return Promise.reject(err)
})

export default instance